package com.data.structure.node;

/**
 * Created by lucky on 2018/9/20.
 */
public class NodeList {

    private int size;

    private Node head;

    public NodeList(){
        size = 0;
    }


    class Node{
        private String data;

        private Node next;

        public Node(String data) {
            this.data = data;
            this.next = null;
        }

        public String getData() {
            return data;
        }

        public void setData(String data) {
            this.data = data;
        }

        public Node getNext() {
            return next;
        }

        public void setNext(Node next) {
            this.next = next;
        }
    }
}
